package com.KA.mapper;


import com.KA.entity.UserWallet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface UserWalletMapper extends BaseMapper<UserWallet> {

    int consume(@Param("id")String walletId, @Param("money")BigDecimal payMoney);

    int refund(@Param("id")String walletId, @Param("refundMoney")BigDecimal refundMoney,@Param("money")BigDecimal money);

    int IsertMoney(@Param("userId")String userId, @Param("mobile")String mobile,@Param("insertmoney") BigDecimal insertmoney,@Param("money")BigDecimal money);
}
